<% content_for :aside do %>
  <%= cell(
    "decidim/versions_list",
    versioned_resource,
    version_path: proc { |version_index| url_for(action: :show, id: version_index) },
    i18n_scope: "decidim.debates.debates.versions_list"
  ) %>
<% end %>

<%= render layout: "layouts/decidim/shared/layout_item", locals: { back_path: debate_path(versioned_resource) } do %>
  <%= cell(
    "decidim/version",
    current_version,
    index: params[:id],
    versioned_resource:,
    path: proc { |extra_params| url_for(action: :show, id: params[:id], **extra_params) },
    versions_path: proc { url_for(action: :index) }
  ) %>
<% end %>
